home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / CodeWarrior Lite / Metrowerks C⁄C++ Lite / Headers / ANSI Headers / utsname.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-12  |  721 b   |  41 lines  |  [TEXT/MMCC]

  1. /*
  2.  *    File:        utsname.h
  3.  *                ©1993-1995 metrowerks Inc. All rights reserved
  4.  *    Author:        Berardino E. Baratta
  5.  *
  6.  *    Content:    Interface file to standard UNIX-style entry points ...
  7.  *
  8.  *    NB:            This file implements some UNIX low level support.  These functions
  9.  *                are not guaranteed to be 100% conformant.
  10.  */
  11.  
  12. #ifndef    _UTSNAME
  13. #define    _UTSNAME
  14.  
  15. #pragma options align=mac68k
  16.  
  17. /* struct for uname */
  18. struct utsname {
  19.     char    sysname[32];
  20.     char    nodename[32];
  21.     char    release[32];
  22.     char    version[32];
  23.     char    machine[32];
  24. };
  25.  
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29.  
  30. /*
  31.  *    Get information about the current system.
  32.  */
  33. int uname(struct utsname *name);
  34.  
  35. #ifdef __cplusplus
  36. }
  37. #endif
  38.  
  39. #pragma options align=reset
  40.  
  41. #endif